#include <stdio.h>
#pragma pack(4)
int main()
{

    struct
    {
        char c;
        int b;
        short d;
    } A;

    printf("The size of A is %d\n", sizeof(A));

    struct
    {
        char c;
        short d;
        int b;
    } B;

    printf("The size of B is %d\n", sizeof(B));

    return 0;
}